﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExceptionLogList.aspx.cs"
    Inherits="BySoft.Web.Site.SysManage.ExceptionLogList" MasterPageFile="~/MastePage/SubEmptyMaster.Master" %>

<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ContentPlaceHolderID="EmptyMasteCPH" runat="server" ID="cphContent">
    <h1 class="tit">
        系统管理 >> 异常日志</h1>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <%--查询条件--%>
            <div class="searchTable">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <th width="20%">
                            操作模块：
                        </th>
                        <td width="30%">
                            <asp:DropDownList runat="server" ID="ddlModule" CssClass="text ui-widget-content ui-corner-all ddlwidth">
                            </asp:DropDownList>
                        </td>
                        <th width="20%">
                            异常类型：
                        </th>
                        <td width="30%">
                            <asp:DropDownList runat="server" ID="ddlExceptionType" CssClass="text ui-widget-content ui-corner-all ddlwidth">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">
                            发生时间：
                        </th>
                        <td colspan="3">
                            <input type="text" id="clpStartDate" style="width: 21%;" class="Wdate textBox" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                runat="server" />
                            -
                            <input type="text" id="clpEndDate" style="width: 21%;" class="Wdate textBox" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                runat="server" />
                        </td>
                    </tr>
                </table>
                <div class="btnStylef">  
                    <label class="btnStyleb png_bg">
                        <asp:Button Text="查询" runat="server" ID="Button2" OnClick="btnSearch_Click" CssClass="png_bg" Width="60px" />
                    </label>
                </div>
            </div>
            <%--列表--%>
            <div class="tableStyle">
                <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
                    AutoGenerateColumns="false" AllowCascade="false" DataKeyNames="ExceptionLogID">
                    <Columns>
                        <asp:BoundField DataField="ModuleName" HeaderText="出错模块" HeaderStyle-Width="30%"
                            ItemStyle-Width="30%" />
                        <asp:BoundField DataField="RecordTime" HeaderText="发生时间" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}"
                            HeaderStyle-Width="30%" ItemStyle-Width="30%" />
                        <asp:BoundField DataField="ExceptionType" HeaderText="异常类型" HeaderStyle-Width="30%"
                            ItemStyle-Width="30%" />
                        <asp:TemplateField>
                            <HeaderTemplate>
                                查看</HeaderTemplate>
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                            <ItemTemplate>
                                <a href="../SysManage/ExceptionLogView.aspx?LogID=<%#Eval("ExceptionLogID").ToString()%>">
                                    <img alt="查看" src="../../App_Themes/Common_CSS/images/GridDetail.gif" /></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:SGridView>
                <div style="padding-top: 5px" align="right">
                    <cc1:PagingControl ID="pcData" runat="server" MaxNavigatePageCount="6" OnPageIndexClick="pcData_PageIndexClick" />
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
